@extends('home.layout.layout')
@section('con')
<style type="text/css">
  .subc3_left_area {
      width: 530px;
      background-color: #FFF;
  }
  .subc3_item {
    margin-bottom: 13px;
    border-bottom: 1px dotted #e4e4e4;
    width: 250px;
    float: left;
  }
  .new_admall_left_area {
    width: 218px;
    min-height: 460px;
    height:auto;
    float: left;
    position: relative;
    z-index: 2;
}
</style>
<div class="new_admall_box">
  <div class="new_admall_topContent clearfix" style="height:auto;">
    <div class="new_admall_left_area mtsCategory" id="mtsCategory" >
      <!-- 左侧导航广告位 开始 -->
      <!--第一块-->
      <div class="pmggw_left">
        <div class="mtscategory_box" style="z-index:100;">
          <div class="mtsCategory-con">
            <div class="first_menu" id="mallCategory">
              <div class="mc_content">
                <h3 class="new_admall_eric_menu">全部分类</h3>
                <ul class="new_admall_menu_content" id="goodsort">
                  
                  <li class="new_admall_menu_li0 item">
                    <h3 class="new_admall_menu_title">推荐品牌</h3>
                    <p class="new_admall_menu_cont">
                    @foreach($r as $k=>$v)
                    <a href="/goodslist/index?brandid={{$v->id}}" target="_blank" >{{$v->name}}</a>
                    @endforeach
                    </p>
                    
                   
                    <div class="subCategory" id="subCategory" style="top: 29px; left: 215px;">
                      <div class="subc_con subc_con3 subc_con3_gj goodsorts" style="display: none;">
                        <div class="fl sub_cat_con sub_cat_con3 clearfix">
                          <div class="subc3_left_area fl">
                              @foreach($arr as $k=>$v)
                              <div class="subc3_item" style="widows: 250px;height: auto;float: left;">
                                <h2 class="subc3_item_title">{{$v->name}}</h2>
                                <div class="subc3_item_body">
                                  <div class="subc3_area">@foreach($v->sub as $keys=>$vals)<a href="/goodslist/index?brandid={{$vals->id}}" target="_blank">{{$vals->name}}</a>@endforeach</div>
                                </div>
                              </div>
                          @endforeach
                          </div>
                          <div class="subc3_right_area fl">
                            <div class="subc3_brands_area">
                              <h2 class="subc3_brands_title">推荐品牌</h2>
                              <div class="subc3_brands_body clearfix">

                                <div class="sub_brand_img fl"> <a href="" target="_blank"><img src="/3826/3855_180_90_021-web.jpg" alt=""></a> </div>
                                <div class="sub_brand_img fl"> <a href="" target="_blank"><img src="/3826/4459_180_90_011-web.jpg" alt=""></a> </div>
                                <div class="sub_brand_img fl"> <a href="" target="_blank"><img src="/3826/4459_180_90_011-web.jpg" alt=""></a> </div>
                                <div class="sub_brand_img fl"> <a href="" target="_blank"><img src="/3826/4459_180_90_011-web.jpg" alt=""></a> </div>

                              </div>
                            </div>
                          </div>
                        </div>
                        <div class="clear"></div>
                      </div>
                    </div>
                  </li>
                 

                  @foreach($cate as $k=>$v)
                  <li class="new_admall_menu_li0 item">
                    <h3 class="new_admall_menu_title">{{$v->goodsname}}</h3>
                    <p class="new_admall_menu_cont">
                    @foreach($v->sub as $key=>$val)
                    <a href="/goodslist/index?cateid={{$val->id}}" target="_blank" >{{$val->goodsname}}</a>
                    @endforeach
                    </p>
                    
                    <div class="subCategory" id="subCategory" style="top: 29px; left: 215px;">
                      <div class="subc_con subc_con3 subc_con3_gj goodsorts" style="display: none;">
                        <div class="fl sub_cat_con sub_cat_con3 clearfix">
                          <div class="subc3_left_area fl">
                          @foreach($v->sub as $ks=>$vs)
                              <div class="subc3_item" style="widows: 250px;height: auto;float: left;">
                                <h2 class="subc3_item_title">{{$vs->goodsname}}</h2>
                                <div class="subc3_item_body">
                                  <div class="subc3_area">@foreach($vs->sub as $keys=>$vals)<a href="/goodslist/index?cateid={{$vals->id}}" target="_blank">{{$vals->goodsname}}</a>@endforeach</div>
                                </div>
                              </div>
                          @endforeach
                          </div>
                          <div class="subc3_right_area fl">
                            <div class="subc3_brands_area">
                              <h2 class="subc3_brands_title">推荐品牌</h2>
                              <div class="subc3_brands_body clearfix">

                                <div class="sub_brand_img fl"> <a href="" target="_blank"><img src="/3826/3855_180_90_021-web.jpg" alt=""></a> </div>
                                <div class="sub_brand_img fl"> <a href="" target="_blank"><img src="/3826/4459_180_90_011-web.jpg" alt=""></a> </div>
                                <div class="sub_brand_img fl"> <a href="" target="_blank"><img src="/3826/4459_180_90_011-web.jpg" alt=""></a> </div>
                                <div class="sub_brand_img fl"> <a href="" target="_blank"><img src="/3826/4459_180_90_011-web.jpg" alt=""></a> </div>

                              </div>
                            </div>
                          </div>
                        </div>
                        <div class="clear"></div>
                      </div>
                    </div>
                  </li>
                  @endforeach
                </ul>
              </div>
            </div>

            <!--产品要配的广告位 开始-->
          </div>
        </div>
      </div>
      <!-- 左侧导航广告位 结束 -->
    </div>
    <div class="new_admall_right_area clearfix">
      <div class="new_admall_adBanner J_new_admall_adBanner">
        <div class="sc_container">
          <ul class="new_admall_content">
            <li>
              <div class="banner_main_con"><a href="" target="_blank" class="main_banner_a"><img src="/uploads/101402_675_435_002-web.jpg" alt=""></a><div class="mall_banner_ad"></div>
              </div>
            </li>
          </ul>
        </div>
      </div>

      <div class="new_admall_tuijianAd">
        <div class="tuijianAd"><a href="" target="_blank"><img src="/homecss/Picture/101411_212_145_002-web.jpg"/></a><span class="tuijianAd_bottombg"></span></div>
        <div class="tuijianAd"><a href="" target="_blank"><img src="/homecss/Picture/101410_212_145_002-web.jpg"/></a><span class="tuijianAd_bottombg"></span></div>
        <div class="tuijianAd"><a href="" target="_blank"><img src="/homecss/Picture/101409_212_145_002-web.jpg"/></a><span class="tuijianAd_bottombg"></span></div>
      </div>

    </div>
  </div>

  <!-- todo 上面的倒计时时间格式参考 search.jumei.js的模板写法-->
  <div class="today_new_productlist">
    <ul class="today_new_ul clearfix" id="today_new_ul">
      <?php
        $jinri = DB::table('seckillglobal')
          ->where('mustsee','0')
          ->orderBy('id', 'desc')
          ->paginate(21);
       ?>
      @foreach($jinri as $k => $v)
      <li class="newdeal_box" pid="1967072" bid="458" cid="37" pos="18" data-hashid="d161108p1967072zc">
        <div class="img_box"><a class="img_box_href" target="_blank" href="{{url('/globalinfo/index',['id'=>$v->id])}}"><img alt="【139减50不封顶】卡姿兰清新自然套装，唤醒你沉睡的妆面！" src="{{$v->img}}" style="width: 862px;height: 345px;margin-left: -238px;" class="img_400 all_cart_img">
          <div class="commit_new" style="display: block;">
            <div class="commit_new_box">新品上线，赶快来试试吧！</div>
          </div>
          </a>
          <div class="deals_tags"></div>
          <div class="add_cart_box all_cart_wrap" style="display: block;"><a href="javascript:;" class="add_cart all_cart">加入购物车</a></div>
        </div>
        <a target="_blank" href="{{url('/globalinfo/index',['id'=>$v->id])}}">
        <div class="today_new_detail">
          <p class="title">@if($v->offcial == 0)<span class="pink">【官方授权】</span>@endif{{$v->description}}</p>
          <div class="intro_box">
            <div class="price_box"><em>¥</em><span class="pnum">{{$v->price}}</span><span class="mnum">¥{{$v->discount}}</span></div>
            <div class="numtimer_box">
              <!-- <div class="time_box" diff="265331"><em>03</em>天<em>01</em>时<em>33</em>分<em>34</em>秒</div>
              <div class="num_box">销量: <span class="buy_num">4483</span> |</div> -->
            </div>
          </div>
        </div>
        </a>
      </li>
      @endforeach
    </ul>
  </div>
</div>
<!-- 子系统内容区域代码 end -->

@endsection